<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
    <head>
        <title>CSS Test: Floating non-replaced elements with 'auto' width</title>
        <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
        <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#float-width">
        <meta name="flags" content="ahem">
        <meta name="assert" content="If 'width' computes to 'auto' then the used value of 'width' is 'shrink-to-fit'.">
        <style type="text/css">
            div
            {
                background: red;
                color: green;
                float: left;
                font: 1in/1em Ahem;
                width: auto;
            }
        </style>
    </head>
    <body>
        <p>Test passes if there is no red visible on the page.</p>
        <div>X</div>
    </body>
</html>